package com.wj.onlinemusic.mapper;
import com.wj.onlinemusic.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {
    @Select("select * from user where username = #{username} and password = #{password}")
    User login(User user);
    @Select("select * from user where username = #{username}")
    User selectByName(String username);
}